const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  chainWebpack: config => {
    config.resolve.alias
      .set('~', path.resolve(__dirname, "src"))
  },
  devServer: {
    host: 'localhost',
    proxy: {
      '/api': {
        target: 'http://ceshi13.dishait.cn',
        changeOrigin: true,
        pathRewrite: {'^/api' : ''}
      }
    },
    client: {
      overlay: false
    }
  }
})
